import $ from 'jquery'
import ShoppingCart from './ShoppingCart'
import List from './List'

export default class App {
  constructor(id) {
    this.$el = $(`#${id}`)

  }

   initShoppingCart(){
    let shoppingCart = new ShoppingCart(this)
    shoppingCart.init()
  }

  initList(){
    let list = new List(this)
    list.init()
  }


   init() {
    this.initList()
    this.initShoppingCart()
  }
}